
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' // 只需 import 一次
import ElementPlus from 'element-plus'
import * as Icons from "@element-plus/icons-vue";
import 'element-plus/dist/index.css'



const app = createApp(App)
for (const [key, component] of Object.entries(Icons )) {
    app.component(key, component)
  }
const pinia = createPinia()

app.use(ElementPlus)
app.use(pinia)
pinia.use(piniaPluginPersistedstate)
app.use(router)

app.mount('#app')
